#include "IDirProxyImpl.h"
#include "MyIDir.h"
///-----------------------------------------------------------------------------
IDirProxyImpl::IDirProxyImpl(const std::string& szVolumn, const Time& time)
{
	m_pMyIDir = new MyIDir(szVolumn, time);
}
///-----------------------------------------------------------------------------
IDirProxyImpl::~IDirProxyImpl(void)
{
	safe_delete(m_pMyIDir);
}
///-----------------------------------------------------------------------------
ETYPE IDirProxyImpl::GetType(void)
{
	return m_pMyIDir->GetType();
}
///-----------------------------------------------------------------------------
const char* IDirProxyImpl::GetName()
{
	return m_pMyIDir->GetName();
}
///-----------------------------------------------------------------------------
IFindResult* IDirProxyImpl::Find(const char* findstr,bool bRecursion)
{
	return m_pMyIDir->Find(findstr, bRecursion);
}
///-----------------------------------------------------------------------------
std::list<IDiskObj*>* IDirProxyImpl::GetIDiskObjList(void)
{
	return m_pMyIDir->GetIDiskObjList();
}
///-----------------------------------------------------------------------------
void IDirProxyImpl::AddDir(const std::string& szDirName)
{
	m_pMyIDir->AddDir(szDirName);
}
///-----------------------------------------------------------------------------
void IDirProxyImpl::AddItem(IDiskObj* pIDiskObj)
{
	m_pMyIDir->AddItem(pIDiskObj);
}
///-----------------------------------------------------------------------------
void IDirProxyImpl::setIDiskObjList(std::list<IDiskObj*>* pIDiskObjPointerList)
{
	m_pMyIDir->setIDiskObjList(pIDiskObjPointerList);
}
///-----------------------------------------------------------------------------
bool IDirProxyImpl::Match(const char* pattern, const char* content)
{
	return m_pMyIDir->Match(pattern, content);
}
///-----------------------------------------------------------------------------
void IDirProxyImpl::DeleteItem(IDiskObj* pIDiskObj)
{
	m_pMyIDir->DeleteItem(pIDiskObj);
}
///-----------------------------------------------------------------------------
int IDirProxyImpl::JudgeFileExist(const std::string& szFileName) const
{
	return m_pMyIDir->JudgeFileExist(szFileName);
}
///-----------------------------------------------------------------------------
bool IDirProxyImpl::copyFileContent(const std::string& szSrcPath, IFileProxyImpl* pIFileProxyImpl) const
{
	return m_pMyIDir->copyFileContent(szSrcPath, pIFileProxyImpl);
}
///-----------------------------------------------------------------------------
void IDirProxyImpl::ShowFileInfo(void) const
{
	m_pMyIDir->ShowFileInfo();
}
///-----------------------------------------------------------------------------